import {reqGetCategoryList} from '@/api'
const state={
  categoryList:[]
}

const mutations={
  GETCATEGORYLIST(state,value){
    state.categoryList=value
  }
}

const actions={
  async getCategoryList(context,values){
    const res=await reqGetCategoryList()
    // console.log(res);
    if(res.code == 200){
      context.commit('GETCATEGORYLIST',res.data)
    }
    
  }
}

const getters={}

export default {
  namespaced: true,
  state,
  mutations,
  actions,
  getters
}